<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/page/inc/taglib.jsp"%>
<div class="pageContent">
	<form method="post" action="${pageContext.request.contextPath}${requestScope.record ==null ?'/shopOrder/orders/insert' :'/shopOrder/orders/update' }" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone);">
		<div class="pageFormContent" layoutH="56">
			<!-- 关闭窗口 -->
			<input type="hidden" name="callbackType" value="closeCurrent" />
			<!-- 隐藏表单 -->
			
			<c:if test="${requestScope.record !=null}">
																	
					<input type="hidden" name="orderId" value="${requestScope.record.orderId}" />
																																																																																																																																																																																																																																																																																																																																							
			</c:if>
			
																						<p>
					<label>订单号</label> <input name="orderNum" class="required" maxlength="50" type="text" value="${requestScope.record.orderNum}"  />
				</p>
								<p>
					<label>订单流程  0新订单（未付款）1已受理   2待收货 6退款中 7已退货 8取消订单  9 完成</label> <input name="orderProcess" class="required" maxlength="10" type="text" value="${requestScope.record.orderProcess}"  />
				</p>
								<p>
					<label>订单总额 即订单不算任何优惠的钱</label> <input name="orderMoney" class="required" maxlength="11" type="text" value="${requestScope.record.orderMoney}"  />
				</p>
								<p>
					<label>应收金额 扣除折扣以及优惠后的应收金额</label> <input name="receivableMoney" class="required" maxlength="11" type="text" value="${requestScope.record.receivableMoney}"  />
				</p>
								<p>
					<label>结账金额 即订单实际收取的金额</label> <input name="realMoney" class="required" maxlength="11" type="text" value="${requestScope.record.realMoney}"  />
				</p>
								<p>
					<label>活动减免金额  (只会参加一个营销活动)</label> <input name="activityReduceMoney" class="required" maxlength="11" type="text" value="${requestScope.record.activityReduceMoney}"  />
				</p>
								<p>
					<label></label> <input name="activityId" class="required" maxlength="1024" type="text" value="${requestScope.record.activityId}"  />
				</p>
								<p>
					<label>订单折扣</label> <input name="orderDiscount" class="required" maxlength="11" type="text" value="${requestScope.record.orderDiscount}"  />
				</p>
								<p>
					<label>支付时间</label> <input name="payTime" class="required" maxlength="${field.size}" type="text" value="${requestScope.record.payTime}"  />
				</p>
								<p>
					<label>完成时间</label> <input name="completeTime" class="required" maxlength="${field.size}" type="text" value="${requestScope.record.completeTime}"  />
				</p>
								<p>
					<label>联系人</label> <input name="linkMan" class="required" maxlength="50" type="text" value="${requestScope.record.linkMan}"  />
				</p>
								<p>
					<label>联系人电话</label> <input name="contactPhone" class="required" maxlength="20" type="text" value="${requestScope.record.contactPhone}"  />
				</p>
								<p>
					<label>联系人地址</label> <input name="contactAddress" class="required" maxlength="50" type="text" value="${requestScope.record.contactAddress}"  />
				</p>
								<p>
					<label>快递费</label> <input name="postagePrice" class="required" maxlength="11" type="text" value="${requestScope.record.postagePrice}"  />
				</p>
								<p>
					<label>会员id</label> <input name="memberId" class="required" maxlength="50" type="text" value="${requestScope.record.memberId}"  />
				</p>
								<p>
					<label>备注</label> <input name="memo" class="required" maxlength="50" type="text" value="${requestScope.record.memo}"  />
				</p>
								<p>
					<label>评论状态 0未评论 1已评论</label> <input name="evaluationState" class="required" maxlength="11" type="text" value="${requestScope.record.evaluationState}"  />
				</p>
								<p>
					<label>退货原因  退货才会有值</label> <input name="reason" class="required" maxlength="50" type="text" value="${requestScope.record.reason}"  />
				</p>
								<p>
					<label>导购员</label> <input name="guider" class="required" maxlength="50" type="text" value="${requestScope.record.guider}"  />
				</p>
								<p>
					<label>0:充值  1:扣费</label> <input name="orderType" class="required" maxlength="11" type="text" value="${requestScope.record.orderType}"  />
				</p>
								<p>
					<label>店铺ID</label> <input name="shopId" class="required" maxlength="45" type="text" value="${requestScope.record.shopId}"  />
				</p>
								<p>
					<label>生成订单的IP</label> <input name="clientIp" class="required" maxlength="45" type="text" value="${requestScope.record.clientIp}"  />
				</p>
								<p>
					<label></label> <input name="operator" class="required" maxlength="45" type="text" value="${requestScope.record.operator}"  />
				</p>
								<p>
					<label></label> <input name="addTime" class="required" maxlength="${field.size}" type="text" value="${requestScope.record.addTime}"  />
				</p>
								<p>
					<label></label> <input name="del" class="required" maxlength="1" type="text" value="${requestScope.record.del}"  />
				</p>
								<p>
					<label>如果是充值会有值</label> <input name="cardRechargeId" class="required" maxlength="45" type="text" value="${requestScope.record.cardRechargeId}"  />
				</p>
								<p>
					<label>卡ID 如果业务有值则传  没有则为null</label> <input name="cardId" class="required" maxlength="45" type="text" value="${requestScope.record.cardId}"  />
				</p>
								<p>
					<label>收取客人的金额</label> <input name="getMoney" class="required" maxlength="11" type="text" value="${requestScope.record.getMoney}"  />
				</p>
								<p>
					<label>赠送金额 结账后 赠送到会员会员卡中  非会员必为0</label> <input name="givingMoney" class="required" maxlength="11" type="text" value="${requestScope.record.givingMoney}"  />
				</p>
								<p>
					<label>找零金额  收取金额getmoney - 订单结账金额realmoney   支付方式为现金支付时才有值</label> <input name="oddChangeMoney" class="required" maxlength="11" type="text" value="${requestScope.record.oddChangeMoney}"  />
				</p>
								<p>
					<label>收货地址</label> <input name="addressId" class="required" maxlength="45" type="text" value="${requestScope.record.addressId}"  />
				</p>
								<p>
					<label>备注</label> <input name="remark" class="required" maxlength="1024" type="text" value="${requestScope.record.remark}"  />
				</p>
						
		</div>
		<div class="formBar">
			<ul>
				<!--<li><a class="buttonActive" href="javascript:;"><span>保存</span></a></li>-->
				<li><div class="buttonActive">
						<div class="buttonContent">
							<button type="submit">保存</button>
						</div>
					</div></li>
				<li>
					<div class="button">
						<div class="buttonContent">
							<button type="button" class="close">取消</button>
						</div>
					</div>
				</li>
			</ul>
		</div>
	</form>
</div>
